<!-- setting 页面内容 -->
<section class="setting" ng-controller="settingCtrl">
    <div class="row margin-reset">
        <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
            <div class="panel panel-default yf-shadow">
                <div class="panel-heading" role="tab" id="headingOne">
                    <h4 class="panel-title">
                        登录密码修改
                    </h4>
                </div>
                <div id="collapseOne" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
                    <div class="panel-body">
                        <form name="changepwdform1" class="changepwdform1" role="form" novalidate autocomplete="false" ng-submit="changepwd(changepwdform1.$invalid, newuser);">
                            <div class="form-group">
                                <label for="oldPassword">旧密码</label>
                                <input type="password" ng-model="newuser.old_password" name='old_password' class="form-control" id="oldPassword" ng-pattern="/^\S{6,20}$/" autocomplete="false" required>
                            </div>
                            <div class="form-group error-container" ng-show="ischangepwdform1 && (changepwdform1.old_password.$error.pattern || changepwdform1.old_password.$error.required)">
                                原密码格式不正确！
                            </div>
                            <div class="form-group">
                                <label for="newPassword">新密码</label>
                                <input type="password" ng-model="newuser.new_password" name='new_password' class="form-control" id="newPassword" ng-pattern="/^\S{6,20}$/" autocomplete="false" required>
                            </div>
                            <div class="form-group error-container" ng-show="ischangepwdform1 && (changepwdform1.new_password.$error.pattern || changepwdform1.new_password.$error.required)">
                                请输入有效密码！
                            </div>
                            <div class="form-group">
                                <label for="reNewPassword">确认密码</label>
                                <input type="password" ng-model="newuser.confirmpassword" name='confirmpassword1' class="form-control" id="reNewPassword" compare-to='newuser.new_password' autocomplete="false" required>
                            </div>
                            <div class="form-group error-container" ng-show="ischangepwdform1 && (changepwdform1.confirmpassword1.$error.compareTo || changepwdform1.confirmpassword1.$error.required)">
                                二次密码输入不一致
                            </div>
                            <button type="submit" class="btn btn-mt-ok">保存修改</button>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
